<?php
$json_j = file_get_contents("php://input");
$json_jx = json_decode($json_j, true);
$filepath 	= $json_jx['url'];
$content = $json_jx['content'];
file_put_contents($filepath, $content);
$file = fopen($filepath, "w");
fwrite($file, $content);
fclose($file);
echo json_encode(array("code"=>200, "msg"=>"success"));
?>